Generate a meaningful diagram using Graphviz DOT, with a specified number of nodes and accurate representation of the given input.